package com.questions.helper.application;

import android.app.Application;
import android.content.Intent;
import android.widget.Toast;

import com.questions.helper.db.LegalKnowledgeSQLite;
import com.questions.helper.service.MyPoiService;
import com.questions.helper.service.QuestionsHelperService;

import java.util.stream.Collectors;

public class QuestionsHelperApplication extends Application {
    public static QuestionsHelperApplication questionsHelperApplication;
    private LegalKnowledgeSQLite legalknowledgeSQLite=null;

    private QuestionsHelperService questionsHelperService;
    @Override
    public void onCreate() {
        super.onCreate();
        questionsHelperApplication = this;
        legalknowledgeSQLite = new LegalKnowledgeSQLite(this);

    }

    public LegalKnowledgeSQLite getLegalknowledgeSQLite() {
        return legalknowledgeSQLite;
    }

    public QuestionsHelperService getQuestionsHelperService() {
        return questionsHelperService;
    }

    public void setQuestionsHelperService(QuestionsHelperService questionsHelperService) {
        this.questionsHelperService = questionsHelperService;
    }

    public void showToast(String message){
        Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
    }



}
